package com.homework.action;

import java.sql.SQLException;

import com.homework.bean.UserBean;
import com.homework.service.UserService;

public class UserForbidAction {

	private static UserService userService = null;
	private int userId;

	public UserForbidAction() {
		userService = new UserService();
	}

	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	// 禁用用户
	public String userForbid() throws SQLException {
		// UserBean
		UserBean userBean = new UserBean();
		userBean.setUserId(String.valueOf(this.getUserId()));

		userService.userForbid(userBean);
		
		return "Success";
	}
}
